package net.llz.decorator;

public class SuonaBikeDecorator extends BikeDecorator{
    private String description = "增加一个喇叭";


    private Bike bike;

    public SuonaBikeDecorator(Bike bike){
        this.bike = bike;
    }


    @Override
    public String getDescription() {
        return bike.getDescription() + ","+ description;
    }

    /**
     * 50 是唢呐喇叭的价格
     * @return
     */
    @Override
    public int getPrice() {
        return bike.getPrice() + 50;
    }
}
